package com.xique.client.controller;

import com.xique.client.bean.request.ClientInOutRecordRequest;
import com.xique.client.bean.request.ClientMultCarListRequest;
import com.xique.client.bean.request.ClientParkOnListRequest;
import com.xique.client.service.biz.service.IClientRecordBizService;
import com.xique.common.core.web.domain.AjaxResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shd
 * @create 2021/7/28 17:21
 */
@RestController
@RequestMapping("/record")
public class ClientRecordController {

    @Autowired
    private IClientRecordBizService clientRecordBizService;

    /**
     * 在场记录
     * @author shd
     * @date 2021/7/29 10:35
     * @param request
     * @return com.xique.common.core.web.domain.AjaxResult
     */
    @GetMapping("/parkOn/list")
    @ApiOperation("在场记录")
    public AjaxResult parkOnList(@Validated ClientParkOnListRequest request) {
        return clientRecordBizService.getParkOnList(request);
    }


    @GetMapping("/multCar/list")
    @ApiOperation("多位多车记录")
    public AjaxResult multCarList(ClientMultCarListRequest request) {
        return clientRecordBizService.getMultCarList(request);
    }

    @GetMapping("/inOut/list")
    @ApiOperation("出入场记录")
    public AjaxResult clientInOnList(ClientInOutRecordRequest request) {
        return clientRecordBizService.getclientInOnList(request);
    }
}
